home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / m / ibmps2-aix.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-04  |  5.8 KB  |  197 lines

  1. /* machine description file for ibm ps/2 aix386.
  2.    Copyright (C) 1989 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Synched up with: FSF 19.29. */
  21.  
  22. /* The following line tells the configuration script what sort of 
  23.    operating system this machine is likely to run.
  24.    USUAL-OPSYS="note"
  25.  
  26. NOTE-START
  27.   Use -opsystem=usg5-3 on AIX 1.2.
  28.   -opsystem=usg5-2-2 should work on either AIX 1.1 or 1.2, but may not
  29.   work with certain new X window managers, and may be suboptimal.
  30. NOTE-END */
  31.  
  32. /* Define WORD_MACHINE if addresses and such have
  33.  * to be corrected before they can be used as byte counts.  */
  34.  
  35. /* #define WORD_MACHINE */
  36.  
  37. /* Now define a symbol for the cpu type, if your compiler
  38.    does not define it automatically:
  39.    Ones defined so far include vax, m68000, ns16000, pyramid,
  40.    orion, tahoe, APOLLO and many others */
  41.  
  42. #define INTEL386
  43. #define aix386
  44.  
  45. #define IBMAIX
  46.  
  47. /* Use type int rather than a union, to represent Lisp_Object */
  48.  
  49. #define NO_UNION_TYPE
  50.  
  51. /* crt0.c, if it is used, should use the i386-bsd style of entry.
  52.    with no extra dummy args.  On USG and XENIX,
  53.    NO_REMAP says this isn't used. */
  54.  
  55. #define CRT0_DUMMIES bogus_fp,
  56.  
  57. /* crt0.c should define a symbol `start' and do .globl with a dot.  */
  58.  
  59. #define DOT_GLOBAL_START
  60.  
  61. /* USG systems do not actually support the load average,
  62. so disable it for them.  */
  63.  
  64. /* Define CANNOT_DUMP on machines where unexec does not work.
  65.    Then the function dump-emacs will not be defined
  66.    and temacs will do (load "loadup") automatically unless told otherwise.  */
  67.  
  68. /* #define CANNOT_DUMP */
  69.  
  70. /* Define VIRT_ADDR_VARIES if the virtual addresses of
  71.    pure and impure space as loaded can vary, and even their
  72.    relative order cannot be relied on.
  73.  
  74.    Otherwise Emacs assumes that text space precedes data space,
  75.    numerically.  */
  76.  
  77. /* #define VIRT_ADDR_VARIES */
  78.  
  79. /* Define addresses, macros, change some setup for dump */
  80.  
  81. #define NO_REMAP
  82. #undef static
  83.   /* Since NO_REMAP, problem with statics doesn't exist */
  84.  
  85. #ifdef USG5_3
  86. #define TEXT_START 0x00000000
  87. #else
  88. #define TEXT_START 0x00400000
  89. #define TEXT_END 0
  90. #define DATA_START 0x00800000
  91. #define DATA_END 0
  92.  
  93. /* The data segment in this machine always starts at address 0x00800000.
  94.    An address of data cannot be stored correctly in a Lisp object;
  95.    we always lose the high bits.  We must tell XPNTR to add them back.  */
  96.  
  97. #define DATA_SEG_BITS 0x00800000
  98. #endif
  99.  
  100. #if 0 /* I refuse to promulgate a recommendation that would make
  101.          users unable to debug - RMS.  */
  102. /* delete the following line to foil optimization, enable debugging */
  103. #define C_DEBUG_SWITCH -O
  104. #endif
  105.  
  106. /* Send signals to subprocesses by "typing" special chars at them.  */
  107.  
  108. #define SIGNALS_VIA_CHARACTERS
  109.  
  110. /* AIX utimes allegedly causes SIGSEGV.  */
  111. #undef HAVE_UTIMES /* override configuration decision */
  112.  
  113. /* Data type of load average, as read out of kmem.  */
  114.  
  115. #define LOAD_AVE_TYPE long    /* For AIX (sysV) */
  116.  
  117. /* Convert that into an integer that is 100 for a load average of 1.0  */
  118.  
  119. #define LOAD_AVE_CVT(x) (int) (((double) (x)/65535.0) * 100.0)
  120.  
  121. /* This page was added in June 1990.  It may be incorrect for some versions
  122.    of aix, so delete it if it causes trouble.  */
  123.  
  124. /* AIX386 has BSD4.3 PTYs */
  125.  
  126. #define HAVE_PTYS
  127.  
  128. /* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */
  129.  
  130. /* Specify the font for X to use.  */
  131.  
  132. #define X_DEFAULT_FONT "8x13"
  133.  
  134.  
  135. /* sioctl.h should not be included, says bytheway@cs.utah.edu.  */
  136. #undef NEED_SIOCTL
  137. /* I'm guessing that that means it doesn't want ptem.h either.  */
  138. #undef NEED_PTEM_H
  139.  
  140. /* aix has `union wait'  */
  141. #define HAVE_UNION_WAIT
  142.  
  143. /* Here override various assumptions in ymakefile */
  144.  
  145. /* Define C_ALLOCA if this machine does not support a true alloca
  146.    and the one written in C should be used instead.
  147.    Define HAVE_ALLOCA to say that the system provides a properly
  148.    working alloca function and it should be used.
  149.    Define neither one if an assembler-language alloca
  150.    in the file alloca.s should be used.  */
  151.  
  152. #ifdef __GNUC__
  153. #define HAVE_ALLOCA
  154. #define alloca(n) __builtin_alloca(n)
  155. #if __GNUC__ < 2
  156. #define LIB_STANDARD /usr/local/lib/gcc-gnulib -lbsd -lrts -lc 
  157. #endif
  158. /* -g fails to work, so it is omitted.  */
  159. /* tranle says that -fstrength-reduce does not help.  */
  160. #define C_DEBUG_SWITCH
  161. #else
  162. #define C_ALLOCA
  163. #define STACK_DIRECTION -1 /* tell alloca.c which way it grows */
  164. #define LIBS_MACHINE -lbsd -lrts
  165. #endif
  166.  
  167. #define OBJECTS_MACHINE hftctl.o
  168. #define LD_SWITCH_MACHINE -T0x00400000 -K -e start
  169. #define LIBS_DEBUG        /* no -lg on aix ps/2 */
  170.  
  171. #ifdef USG5_3
  172. #define XICCC
  173. #undef LD_SWITCH_MACHINE
  174. #define LD_SWITCH_MACHINE -T0x0 -K -e start
  175.  
  176. /* Things defined in s-usg5-3.h that need to be overridden.  */
  177. #undef BROKEN_TIOCGETC
  178. #undef BROKEN_TIOCGWINSZ
  179. #undef LIBX10_SYSTEM
  180. #undef LIBX11_SYSTEM
  181. #undef LIB_X11_LIB
  182. #endif
  183.  
  184. /* Shared libraries are supported in a patch release of ps/2 1.2.1.
  185.    If the system has them, the user can turn them on, and this code
  186.    will make them work.  */
  187. #define USG_SHARED_LIBRARIES /* Assume that by 19's release everyone has this.  */
  188.  
  189. #ifdef USG_SHARED_LIBRARIES
  190. #define ORDINARY_LINK
  191. #undef LIB_STANDARD
  192. #undef LD_SWITCH_MACHINE
  193. #if __GNUC__ > 1
  194. #define LD_SWITCH_MACHINE -shlib
  195. #endif
  196. #endif
  197.